<?php

namespace App\Model;

use Illuminate\Database\Eloquent\Model;

class Config extends Model
{
    //
    protected $fillable =[
            'name','data'
        ];
    protected  $casts = [
        //将data的数组转换成json格式
        'data'=>'array'
    ];

}
